package com.hjw.entity;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>Project:Academic - User<p>
 *
 * @author IvanWei玮 -- maste
 * @version 1.0
 * @DataTime 2025/4/10 21:27
 * @since 1.8
 */
@Getter
@Setter
public class User implements Serializable {
    private int id;
    private String account;
    private String password;
    private String role;
    private String phone;
    private String nickname;
    private int vip;
    private String addr;
    private String img;
    private int closed;

    public User() {
    }

    public User(int id, String account, String password, String role, String phone, String nickname, int vip, String addr, String img, int closed) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.role = role;
        this.phone = phone;
        this.nickname = nickname;
        this.vip = vip;
        this.addr = addr;
        this.img = img;
        this.closed = closed;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", role='" + role + '\'' +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                ", vip=" + vip +
                ", addr='" + addr + '\'' +
                ", img='" + img + '\'' +
                ", closed=" + closed +
                '}';
    }
}
